package com.krain.corelibrary.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by ZHUTIANJIAN133 on 2015-08-28.
 */
public class ImageItem implements Parcelable{
    private String sUrl;
    private String sKey;

    public String getsUrl() {
        return sUrl;
    }

    public String getsKey() {
        return sKey;
    }

    public void setsUrl(String sUrl) {
        this.sUrl = sUrl;
    }

    public void setsKey(String sKey) {
        this.sKey = sKey;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.sUrl);
        dest.writeString(this.sKey);
    }

    public ImageItem() {
    }

    protected ImageItem(Parcel in) {
        this.sUrl = in.readString();
        this.sKey = in.readString();
    }

    public static final Creator<ImageItem> CREATOR = new Creator<ImageItem>() {
        public ImageItem createFromParcel(Parcel source) {
            return new ImageItem(source);
        }

        public ImageItem[] newArray(int size) {
            return new ImageItem[size];
        }
    };
}
